package com.qingxin.sms.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

import com.qingxin.sys.entity.BaseEntity;

/**
 * 短信查询信息表
 * @author Administrator
 *
 */
@Entity
@Table(name = "sms_query")
public class SmsQuery extends BaseEntity implements java.io.Serializable {
	private static final long serialVersionUID = 2574980705138043029L;
	
	private String id;
	private String queryPhone;
	private String queryCode;
	private Date queryTime;
	private String sendMessage;
	private Date sendTime;
	private Integer queryStatus;//状态：0未发送，1已发送
	
	public SmsQuery() {
	}
	
	
	public SmsQuery(String id, String queryPhone, String queryCode,
			Date queryTime, String sendMessage, Date sendTime, Integer queryStatus) {
		this.id = id;
		this.queryPhone = queryPhone;
		this.queryCode = queryCode;
		this.queryTime = queryTime;
		this.sendMessage = sendMessage;
		this.sendTime = sendTime;
		this.queryStatus = queryStatus;
	}


	@GenericGenerator(name = "generator", strategy = "uuid.hex")
	@Id
	@GeneratedValue(generator = "generator")
	@Column(name = "id", unique = true, nullable = false, length = 32)
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	
	
	@Column(name = "query_phone", length = 20)
	public String getQueryPhone() {
		return queryPhone;
	}
	public void setQueryPhone(String queryPhone) {
		this.queryPhone = queryPhone;
	}
	
	
	@Column(name = "query_code", length = 50)
	public String getQueryCode() {
		return queryCode;
	}
	public void setQueryCode(String queryCode) {
		this.queryCode = queryCode;
	}
	
	
	@Column(name = "query_time", length = 23)
	public Date getQueryTime() {
		return queryTime;
	}
	public void setQueryTime(Date queryTime) {
		this.queryTime = queryTime;
	}
	
	
	@Column(name = "send_message", length = 500)
	public String getSendMessage() {
		return sendMessage;
	}
	public void setSendMessage(String sendMessage) {
		this.sendMessage = sendMessage;
	}
	
	
	@Column(name = "send_time", length = 23)
	public Date getSendTime() {
		return sendTime;
	}
	public void setSendTime(Date sendTime) {
		this.sendTime = sendTime;
	}
	
	
	@Column(name = "query_status")
	public Integer getQueryStatus() {
		return queryStatus;
	}
	public void setQueryStatus(Integer queryStatus) {
		this.queryStatus = queryStatus;
	}
	
	
}
